package com.study.common.entity.bo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @description: some desc
 * @author: LChuang
 * @date: 2023/9/26 17:40
 */
@Data
public class MailBo {

    /**
     * 该数组包含多个邮箱时支持批量发送
     */
    @Size(min = 1, max = 1000, message = "收件人至少有一位")
    private String[] receivers;

    @NotBlank(message = "邮件主题不能为空")
    private String subject;

    @NotBlank(message = "邮件内容不能为空")
    private String content;

}
